package com.design.pay;

/**
 * 支付宝支付
 */
public class AliPay {
    public void initialize(String appId, String privateKey) {
        System.out.println("[AliPay] 初始化SDK: appId=" + appId + ", privateKey=" + privateKey);
    }

    public String signOrder(String orderId) {
        System.out.println("[AliPay] 对订单 " + orderId + " 进行签名");
        return "alipay_signed_data_" + orderId;
    }

    public String sendPaymentRequest(String signedData) {
        System.out.println("[AliPay] 发起支付请求: " + signedData);
        return "SUCCESS";
    }

    public boolean verifyCallback(String callbackData) {
        System.out.println("[AliPay] 验证回调数据签名");
        return true;
    }
}
